package com.ruoyi.zsyh.domain;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.poi.hpsf.Decimal;

/**
 * 大区会长产品合作对象 zsyh_agent_cooperate
 * 
 * @author yuexl
 * @date 2024-10-15
 */
public class ZsyhAgentCooperate extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 大区会长产品合作id */
    private String id;

    /** 会长id */
    @Excel(name = "会长id")
    private String agentId;

    /** 产品id */
    @Excel(name = "产品id")
    private String partsId;

    /** 区域内人口总数（万） */
    @Excel(name = "区域内人口总数", readConverterExp = "万=")
    private Integer peopleNum;

    /** 销售额（万元） */
    @Excel(name = "销售额", readConverterExp = "万=元")
    private BigDecimal salesVolume;

    /** 保证金（元） */
    @Excel(name = "保证金", readConverterExp = "元=")
    private BigDecimal earnestMoney;

    /** 政策简介（从产品哪里带过来） */
    @Excel(name = "政策简介", readConverterExp = "从=产品哪里带过来")
    private String cooperationPolicy;

    /** 是否已缴纳保证金 1是 0否 */
    @Excel(name = "是否已缴纳保证金 1是 0否")
    private String isPay;

    /** 人口销售额比例（每1万人额定销售额） */
    @Excel(name = "人口销售额比例", readConverterExp = "每=1万人额定销售额")
    private String populationSalesRatio;

    /** 销售额定金比例（每1000销售额支付的定金） */
    @Excel(name = "销售额定金比例", readConverterExp = "每=1000销售额支付的定金")
    private String salesPaymentRatio;

    /** 合作产品的年份 */
    @Excel(name = "合作产品的年份")
    private String year;

    /** 备注 */
    @Excel(name = "备注")
    private String remarks;

    private String partsName;

    private String agentName;

    private String agentPerson;

    private String agentPhone;

    private String areaNames;

    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date beginCreateTime;

    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date endCreateTime;

    private BigDecimal reallySalesVolume;

    private BigDecimal reallyEarnestMoney;

    private String operateName;

    /** 大区会长产品合作区域信息 */
    private List<ZsyhAgentCooperateRel> zsyhAgentCooperateRelList;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setAgentId(String agentId) 
    {
        this.agentId = agentId;
    }

    public String getAgentId() 
    {
        return agentId;
    }
    public void setPartsId(String partsId) 
    {
        this.partsId = partsId;
    }

    public String getPartsId() 
    {
        return partsId;
    }
    public void setPeopleNum(Integer peopleNum) 
    {
        this.peopleNum = peopleNum;
    }

    public Integer getPeopleNum() 
    {
        return peopleNum;
    }
    public void setSalesVolume(BigDecimal salesVolume) 
    {
        this.salesVolume = salesVolume;
    }

    public BigDecimal getSalesVolume() 
    {
        return salesVolume;
    }
    public void setEarnestMoney(BigDecimal earnestMoney) 
    {
        this.earnestMoney = earnestMoney;
    }

    public BigDecimal getEarnestMoney() 
    {
        return earnestMoney;
    }
    public void setCooperationPolicy(String cooperationPolicy) 
    {
        this.cooperationPolicy = cooperationPolicy;
    }

    public String getCooperationPolicy() 
    {
        return cooperationPolicy;
    }
    public void setIsPay(String isPay) 
    {
        this.isPay = isPay;
    }

    public String getIsPay() 
    {
        return isPay;
    }
    public void setPopulationSalesRatio(String populationSalesRatio) 
    {
        this.populationSalesRatio = populationSalesRatio;
    }

    public String getPopulationSalesRatio() 
    {
        return populationSalesRatio;
    }
    public void setSalesPaymentRatio(String salesPaymentRatio) 
    {
        this.salesPaymentRatio = salesPaymentRatio;
    }

    public String getSalesPaymentRatio() 
    {
        return salesPaymentRatio;
    }
    public void setYear(String year) 
    {
        this.year = year;
    }

    public String getYear() 
    {
        return year;
    }
    public void setRemarks(String remarks) 
    {
        this.remarks = remarks;
    }

    public String getRemarks() 
    {
        return remarks;
    }

    public List<ZsyhAgentCooperateRel> getZsyhAgentCooperateRelList()
    {
        return zsyhAgentCooperateRelList;
    }

    public void setZsyhAgentCooperateRelList(List<ZsyhAgentCooperateRel> zsyhAgentCooperateRelList)
    {
        this.zsyhAgentCooperateRelList = zsyhAgentCooperateRelList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("agentId", getAgentId())
            .append("partsId", getPartsId())
            .append("peopleNum", getPeopleNum())
            .append("salesVolume", getSalesVolume())
            .append("earnestMoney", getEarnestMoney())
            .append("cooperationPolicy", getCooperationPolicy())
            .append("isPay", getIsPay())
            .append("populationSalesRatio", getPopulationSalesRatio())
            .append("salesPaymentRatio", getSalesPaymentRatio())
            .append("year", getYear())
            .append("remarks", getRemarks())
            .append("zsyhAgentCooperateRelList", getZsyhAgentCooperateRelList())
            .toString();
    }

    public String getPartsName() {
        return partsName;
    }

    public void setPartsName(String partsName) {
        this.partsName = partsName;
    }

    public String getAgentName() {
        return agentName;
    }

    public void setAgentName(String agentName) {
        this.agentName = agentName;
    }

    public String getAgentPerson() {
        return agentPerson;
    }

    public void setAgentPerson(String agentPerson) {
        this.agentPerson = agentPerson;
    }

    public String getAgentPhone() {
        return agentPhone;
    }

    public void setAgentPhone(String agentPhone) {
        this.agentPhone = agentPhone;
    }

    public String getAreaNames() {
        return areaNames;
    }

    public void setAreaNames(String areaNames) {
        this.areaNames = areaNames;
    }

    public Date getBeginCreateTime() {
        return beginCreateTime;
    }

    public void setBeginCreateTime(Date beginCreateTime) {
        this.beginCreateTime = beginCreateTime;
    }

    public Date getEndCreateTime() {
        return endCreateTime;
    }

    public void setEndCreateTime(Date endCreateTime) {
        this.endCreateTime = endCreateTime;
    }

    public BigDecimal getReallySalesVolume() {
        return reallySalesVolume;
    }

    public void setReallySalesVolume(BigDecimal reallySalesVolume) {
        this.reallySalesVolume = reallySalesVolume;
    }

    public BigDecimal getReallyEarnestMoney() {
        return reallyEarnestMoney;
    }

    public void setReallyEarnestMoney(BigDecimal reallyEarnestMoney) {
        this.reallyEarnestMoney = reallyEarnestMoney;
    }

    public String getOperateName() {
        return operateName;
    }

    public void setOperateName(String operateName) {
        this.operateName = operateName;
    }
}
